home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / metzdial.zip / COMM.TXT next >
Text File  |  1992-08-01  |  13KB  |  305 lines

  1. Please note:  Under Windows 3.1, some of the settings mentioned below
  2. now must be modified via the Windows Control Panel.
  3.  
  4.  
  5. Q63482 Enhanced Mode Error: COM Port Assigned to DOS Application
  6. Microsoft Windows 3 Retail Product (WIN3)
  7. 3.00
  8. MS-DOS
  9.  
  10. Summary:
  11.  
  12. This article contains information on possible causes for the following
  13. Microsoft Windows version 3.00 enhanced mode error:
  14.  
  15.    The COM port is currently assigned to a DOS application.
  16.    Do you want to reassign the port to Windows?
  17.  
  18. 1. If the Port in Question Is COM3 or COM4
  19. ------------------------------------------
  20.  
  21. COM3 or COM4 may NEVER be used from Microsoft Windows 3.00 enhanced
  22. mode by ANY Windows or DOS application without making a modification
  23. to the SYSTEM.INI file as follows. Insert the following two lines in
  24. the [386ENH] section:
  25.  
  26.    COM3Base=3E8h
  27.    COM4Base=2E8h
  28.  
  29. This modification should eliminate the problem. If the problem
  30. persists after this modification, verify that you have properly
  31. inserted the lines as shown above (they are not case-sensitive). If
  32. they are correct, the hardware interrupt (IRQ) and/or base I/O
  33. addresses may be incorrect for one or more hardware COM ports in your
  34. system. The following are the IBM standard port settings for COM3 and
  35. COM4. For further information about this topic, and IBM standard
  36. settings for COM1 and COM2, see Section 2, below.
  37.  
  38.    COM3 - hardware interrupt (IRQ) 4, base I/O address 3E8
  39.    COM4 - hardware interrupt (IRQ) 3, base I/O address 2E8
  40.  
  41. 2. If the Port in Question Is COM1 or COM2
  42. ------------------------------------------
  43.  
  44. Is COM3 or COM4 being used? COM1 and COM3, or COM2 and COM4, cannot be
  45. used simultaneously on any machine that does not have a micro channel
  46. (MCA) bus, such as IBM PS/2 machines, or the new extended industry
  47. standard architecture (EISA) bus, such as the COMPAQ SystemPro. This
  48. is a hardware limitation; there is no workaround. See the More
  49. Information section for further details.
  50.  
  51. If neither COM3 or COM4 is being used, then the hardware interrupt
  52. (IRQ) channels and/or base I/O addresses for COM1 and COM2 may be set
  53. incorrectly. On a non-PS/2 machine, these settings are made by using
  54. hardware DIP switches or jumpers. Consult your hardware documentation
  55. for information on such settings. If you need further assistance in
  56. properly configuring your hardware, contact your hardware vendor or
  57. manufacturer. The correct IBM standard settings for COM1 and COM2 are
  58. as follows:
  59.  
  60.    COM1 - hardware interrupt (IRQ) 4, base I/O address 3F8
  61.    COM2 - hardware interrupt (IRQ) 3, base I/O address 2F8
  62.  
  63. More Information:
  64.  
  65. COM1 and COM3, or COM2 and COM4, may not be used simultaneously on any
  66. system that does not use an MCA bus, such as an IBM PS/2, or an EISA
  67. bus, such as a COMPAQ SystemPro. This is because the normal Industry
  68. Standard Architecture (ISA) bus does not implement hardware interrupt
  69. (IRQ) sharing. IRQ sharing allows multiple devices, such as COM ports,
  70. to use the same hardware interrupt. Note that by default, the
  71. COM1/COM3 and COM2/COM4 pairs of ports use the same interrupts. This
  72. is a hardware limitation; there is no possible workaround other than
  73. not using these pairs of ports simultaneously.
  74.  
  75. The Windows version 3.00 enhanced mode SYSTEM.INI setting
  76. "ComIRQSharing=true" (without the quotation marks) is not intended for
  77. use on ISA bus equipment. It will have little or no impact on this
  78. problem. It is present for such rare cases as when Windows could
  79. conceivably identify an MCA or EISA bus machine incorrectly, and fail
  80. to implement IRQ sharing. In such cases, IRQ sharing could be properly
  81. enabled with this switch.
  82.  
  83. COPYRIGHT Microsoft Corporation, 1990.
  84. Updated  90/07/10 15:43
  85.  
  86.  
  87.  
  88. Q64818 Troubleshooting Commmunications Under Windows 3.00
  89. Microsoft Windows 3 Retail Product (WIN3)
  90. 3.00
  91. MS-DOS
  92.  
  93. Summary:
  94.  
  95. The following table depicts the standard settings for the four
  96. communications ports that Microsoft Windows 3.00 and DOS (4.01)
  97. support. This information is useful for troubleshooting communications
  98. problems under Windows 3.00. A brief description for each column
  99. appears below the table. (Note: In the table below, Windows 3.00 is
  100. abbreviated as WIN3.)
  101.  
  102.            WIN3 COMM.DRV    WIN3  Default       WIN3 Desired
  103.             Procom Plus   SYSTEM.INI Settings SYSTEM.INI Settings
  104.    Port   I/O Range  IRQ      I/O Range          I/O Range
  105.    ----  ---------------- ------------------ ------------------
  106.  
  107.                             [386ENH]           [386ENH]
  108.    COM1      3F8h     4     COM1BASE=3F8h      COM1BASE=3F8h
  109.    COM2      2F8h     3     COM2BASE=2F8h      COM2BASE=2F8h
  110.    COM3      3E8h     4     COM3BASE=2E8h      COM3BASE=3E8h
  111.    COM4      2E8h     3     COM4BASE=2E0h      COM4BASE=2E8h
  112.  
  113. The first column lists the ports. The second column describes the
  114. settings for the ports that both the Windows COMM.DRV and most popular
  115. communications packages use by default. The third column shows what
  116. Windows 3.00 sets by default and the fourth column shows what should
  117. be set in the [386ENH] section of the SYSTEM.INI file for proper
  118. functioning of the ports under enhanced-mode Windows 3.00.
  119.  
  120. Note: You must make the changes shown in column 4 above if you want to
  121. share IRQs. These procedures are described in good detail in
  122. SYSINI2.TXT under the [386ENH] section.
  123.  
  124. More Information:
  125.  
  126. The headings "I/O Range" specify the base port addresses for the
  127. respective ports. IRQ represents the normal interrupts used in IBM-AT
  128. compatible computers and should not be changed under normal
  129. conditions. Under enhanced-mode Windows 3.00, you can change the base
  130. port addresses, IRQ lines, communications protocol, and communications
  131. IRQ sharing. For complete information on any of these topics, please
  132. consult the file SYSINI2.TXT.
  133.  
  134. Troubleshooting Communications Problems Under Windows 3.00
  135. ----------------------------------------------------------
  136.  
  137. 1. You can use two communication ports simultaneously that share the
  138.    same interrupt (for example, COM1 and COM3, or COM2 and COM4) only
  139.    if the hardware is capable of it. The ability to share
  140.    communications port IRQs is hardware dependent. Currently, the
  141.    only hardware that you can be assured that IRQ sharing is supported
  142.    on is MicroChannel. Although EISA (Extended Industry Standard
  143.    Architecture) does have IRQ sharing as part of its specifications,
  144.    implementation on current machines is spotty. If you are unable to
  145.    successfully share an IRQ with the COMIrqSharing switch set to
  146.    true, the hardware does not support IRQ sharing and Windows 3.00 is
  147.    not able to overcome the lack of support for this feature using
  148.    software.
  149.  
  150. 2. COM3 and COM4 may not be reliable under Windows 3.00 (standard and
  151.    real mode) unless both COM1 and COM2 are first activated. If you
  152.    use only COM3 and/or COM4, you may experience problems (with
  153.    printing, communications, your mouse). If you use COM1 and COM3
  154.    without using COM2, you also may have problems. The easiest way to
  155.    remember this is to not use a higher serial port (2, 3, or 4)
  156.    unless all lower number ports (1, 2, and 3) are first activated (or
  157.    in use).
  158.  
  159. 3. Standard- and real-mode Windows 3.00 use the COMM.DRV directly
  160.    whereas enhanced-mode Windows 3.00 virtualizes the ports using a
  161.    device called the virtual communications driver (VCD). For this
  162.    reason, serial communication can theoretically be considered more
  163.    reliable under standard and real mode because there can be no
  164.    miscommunication between the VCD and the COMM.DRV. In cases where
  165.    you are using multiple communications ports under Windows 3.00
  166.    enhanced mode, verify that the base port addresses are set as
  167.    described in the table located earlier in this article.
  168.  
  169. Note: IRQ sharing is possible under enhanced-mode Windows 3.00 only if
  170. you make the necessary changes to the [386ENH] section of the SYSTEM.INI
  171. file as outlined above.
  172.  
  173. COPYRIGHT Microsoft Corporation, 1990.
  174. Updated  90/11/21 05:24
  175.  
  176.  
  177.  
  178. Q65796 Debugging Communications Problems in Terminal (TERMINAL.EXE)
  179. Microsoft Windows 3 Retail Product (WIN3)
  180. 3.00
  181. MS-DOS
  182.  
  183. Summary:
  184.  
  185. Most problems associated with the Terminal program packaged with
  186. Microsoft Windows version 3.00 occur when your machine does not
  187. recognize that you have the specified COM port available. This
  188. generates the message "The COMx port is currently assigned to a DOS
  189. application. Do you want to reassign the port to Windows?"
  190.  
  191. More Information:
  192.  
  193. To determine if the machine is recognizing the existence of the COM
  194. port, do the following:
  195.  
  196. 1. Use the DOS DEBUG command to look at the BIOS table.
  197.  
  198. 2. At the DOS prompt (outside of Windows), type "DEBUG" (without the
  199.    quotation marks). This will return a hyphen prompt (-).
  200.  
  201. 3. At the hyphen prompt, type "d40:0" (without the quotation marks)
  202.    and it will return a listing of the BIOS data. You will be back at
  203.    a hyphen prompt where you can type Q to quit DEBUG.
  204.  
  205. 4. Look at this table of data on the screen. The first row is the
  206.    important one. It will show something as follows:
  207.  
  208.       0040:0000  F8 03 F8 02 E8 03 00 00-BC 03 78 03 00 00 00 00
  209.  
  210.    Everything to the left of the center hyphen is COM ports;
  211.    everything to the right is LPT ports. The example above shows that
  212.    the computer has COM1 at address 03F8 (it is listed in reverse byte
  213.    order), COM2 at 02F8, and COM3 at 03E8. COM4 is not found, thus
  214.    displaying 0000 just to the left of the hyphen. If the machine does
  215.    not recognize the COM port desired to be used by Terminal
  216.    (identified by the 0000 entries), continue as follows. If the
  217.    machine does recognize the desired COM port, skip to the
  218.    SYSTEM.INI Modifications section below in this article.
  219.  
  220. 5. Make a script file for DEBUG to execute in the AUTOEXEC.BAT. The
  221.    script can be made using NOTEPAD.EXE. To illustrate this, the
  222.    following examples for COM ports are provided. The second line of
  223.    the examples provided should be edited to match the hardware that
  224.    is in use in the computer. Although the examples given are the most
  225.    popular, there will be exceptions to these.
  226.  
  227.       COM1                                    COM2
  228.       ----                                    ----
  229.  
  230.       E40:0                                   E40:2
  231.       F8 03                                   F8 02
  232.       q     <-Followed by ENTER               q     <-Followed by ENTER
  233.  
  234.       COM3                                    COM4
  235.       ----                                    ----
  236.  
  237.       E40:4                                   E40:6
  238.       E8 03                                   E8 02
  239.       q     <-Followed by ENTER               q     <-Followed by ENTER
  240.  
  241. Do the following:
  242.  
  243. 1. Save the three-line file from Notepad giving it a name such as
  244.    C:\FIXCOM3.DEB or C:\FIXCOM4.DEB, depending on which port it is.
  245.  
  246. 2. Add a line to the end of the AUTOEXEC.BAT such as the following:
  247.  
  248.       DEBUG < FIXCOM3.DEB > NUL  or DEBUG < FIXCOM4.DEB > NUL
  249.  
  250. 3. Save the AUTOEXEC.BAT and reboot the machine.
  251.  
  252. The > NUL ending is just to keep the script from being echoed back to
  253. the screen. You can use DEBUG again to look at d40:0 and see if the
  254. change has taken effect.
  255.  
  256. SYSTEM.INI Modifications
  257. ------------------------
  258.  
  259. If the port is recognized by the machine, note the address that is
  260. listed when using DEBUG and edit the SYSTEM.INI COMxBase= lines to
  261. coincide with the base I/O address used by the hardware. The examples
  262. given above for COM1 and COM2 would not require any changes to the
  263. SYSTEM.INI file.
  264.  
  265. However, the examples given below for COM3 and COM4 would require the
  266. following entries to the [386enh] section of the SYSTEM.INI file:
  267.  
  268.    COM1Base=3F8h                   <default is 3F8h>
  269.    COM2Base=2F8h                   <default is 2F8h>
  270.    COM3Base=3E8h                   <default is 2E8h>
  271.    COM4Base=2E8h                   <default is 2E0h>
  272.  
  273. Additional Considerations
  274. -------------------------
  275.  
  276. If you are using a serial mouse on COM1 and you have an internal modem
  277. on COM3, this configuration won't work because the mouse is tying up
  278. the interrupt that is desired to be shared by COM3. This behavior also
  279. occurs if you are using a serial mouse on COM2 and want to use an
  280. internal modem on COM4.
  281.  
  282. You may also use the following steps to test what port the modem
  283. is connected to from the DOS command line:
  284.  
  285. 1. At the DOS prompt, type "Mode com1: 1200,e,7,1" (without the
  286.    quotation marks).
  287.  
  288. 2. Type "COPY CON COM1:" (without the quotation marks) and press ENTER.
  289.  
  290. 3. Type "ATDT 12345678901234567890" (without the quotation marks) and
  291.    press ENTER.
  292.  
  293. 4. Press CTRL+Z or F6.
  294.  
  295. This sends a command to the selected port and tells the modem to dial
  296. the numbers 1-10 twice. The internal speaker on the modem should emit
  297. an audible series of tones if it is connected to the named port.
  298.  
  299. If no tones are heard, try the test on the remaining COM ports until
  300. you get a response. If the modem does not respond, try connecting the
  301. modem to a different port and repeat the test sequence above.
  302.  
  303. COPYRIGHT Microsoft Corporation, 1990.
  304. Updated  90/12/05 06:33
  305.